package org.example.campsys.service;

import org.example.campsys.mapper.UserInfoMapper;
import org.example.campsys.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;


    public UserInfo queryUserByName(String loginName ){
        return userInfoMapper.queryUserByName(loginName);
    }

    public Integer getRoleId(Integer id){
        return userInfoMapper.getRoleId(id);
    }
}
